package com.fqcar.fqdf.entity;

import android.os.Parcel;
import android.os.Parcelable;

import com.fqcar.fqdf.view.IndexBar.bean.BaseIndexPinyinBean;


/**
 * Created by lvsidong on 16/9/19.
 */
public class CityEntity extends BaseIndexPinyinBean implements Parcelable {

    public String cityCode;
    public String code;
    public int depositAmount;
    public int id;
    public int isUse;
    public int lockState;
    public int managerId;
    public String name;
    public int pid;
    public String type;
    public double lat;
    public double lon;
    public String headCharacter;

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public int getDepositAmount() {
        return depositAmount;
    }

    public void setDepositAmount(int depositAmount) {
        this.depositAmount = depositAmount;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getIsUse() {
        return isUse;
    }

    public void setIsUse(int isUse) {
        this.isUse = isUse;
    }

    public int getLockState() {
        return lockState;
    }

    public void setLockState(int lockState) {
        this.lockState = lockState;
    }

    public int getManagerId() {
        return managerId;
    }

    public void setManagerId(int managerId) {
        this.managerId = managerId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getLat() {
        return lat;
    }

    public void setLat(double lat) {
        this.lat = lat;
    }

    public double getLon() {
        return lon;
    }

    public void setLon(double lon) {
        this.lon = lon;
    }

    public String getHeadCharacter() {
        return headCharacter;
    }

    public void setHeadCharacter(String headCharacter) {
        this.headCharacter = headCharacter;
    }

    public static Creator<CityEntity> getCREATOR() {
        return CREATOR;
    }


    public CityEntity() {
    }
    protected CityEntity(Parcel in) {
        cityCode = in.readString();
        code = in.readString();
        depositAmount = in.readInt();
        id = in.readInt();
        isUse = in.readInt();
        lockState = in.readInt();
        managerId = in.readInt();
        name = in.readString();
        pid = in.readInt();
        type = in.readString();
        lat = in.readDouble();
        lon = in.readDouble();
        headCharacter = in.readString();
    }

    public static final Creator<CityEntity> CREATOR = new Creator<CityEntity>() {
        @Override
        public CityEntity createFromParcel(Parcel in) {
            return new CityEntity(in);
        }

        @Override
        public CityEntity[] newArray(int size) {
            return new CityEntity[size];
        }
    };

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(cityCode);
        dest.writeString(code);
        dest.writeInt(depositAmount);
        dest.writeInt(id);
        dest.writeInt(isUse);
        dest.writeInt(lockState);
        dest.writeInt(managerId);
        dest.writeString(name);
        dest.writeInt(pid);
        dest.writeString(type);
        dest.writeDouble(lat);
        dest.writeDouble(lon);
        dest.writeString(headCharacter);
    }

    @Override
    public String getTarget() {
        return headCharacter;
    }
}
